<template>
    <div>
        组页面
        <Button v-loading="loading" />
        <TsSide />
        <TsHeader />
        <button @click="router.push('/login')">
            登陆页面
        </button>
        <button @click="backHandle">退出登录</button>
        <button @click="router.push('/main/role/addRole')">角色管理</button>
    </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { useRouter } from 'vue-router';
const loading = ref(true)
setTimeout(() => {
    loading.value = false
}, 2000)
const router = useRouter()
const backHandle = () => {
    localStorage.clear()
    window.location.reload()
    router.clearRoutes()

}
</script>

<style scoped></style>